package main

import (
	"log"
	"net"
	"net/http"
	"net/rpc"
	"radish/service"
)

func main() {
	stringService := new(service.StringService)
	rpc.Register(stringService)
	rpc.HandleHTTP()
	l, err := net.Listen("tcp", "0.0.0.0:1234")
	if err != nil {
		log.Fatal("Listen error:", err)
	}
	http.Serve(l, nil)
}
